import { findAllBet } from '@/apis/betAPI'
import { ref } from 'vue'

export default () => {
  const bets = ref<BetViewModel[]>()

  async function all(args = {}) {
    const { data } = await findAllBet(args)
    bets.value = data
  }

  return { all, bets }
}
